package com.yeyks.common.exception;

import lombok.Data;

@Data
public class ServiceException extends RuntimeException {
    private static final long serialVersionUID = 5219832882339529297L;

    private Integer code;
    private String message;

    public ServiceException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ServiceException(String message) {
        this.message = message;
    }
}
